package com.qijian.maindata.domain.query;

import com.baomidou.mybatisplus.annotation.TableName;
import com.qijian.common.utils.mybatis.WhereType;
import com.qijian.common.utils.mybatis.WhereTypeEnum;
import lombok.Data;
import lombok.ToString;

import java.util.Set;

@Data
@ToString
@TableName("qm_edu_training_plan_zjxny")
public class QmTrainingPlanQuery {

    @WhereType(filed = "publish_chn_name")
    private String manageNickName;

    @WhereType(filed = "plan_name",type = WhereTypeEnum.LIKE)
    private String PlanName;

    @WhereType(filed = "publish_chn_name",type = WhereTypeEnum.LIKE)
    private String PublishChnName;

    private String startTime;

    private String endTime;

    @WhereType(filed = "chn_name",type = WhereTypeEnum.EQ)
    private String chnName;

    @WhereType(filed = "id", type = WhereTypeEnum.IN)
    private Set<Long> ids;

    @WhereType(func = "DATE_FORMAT(publish_date,'%Y') = {1}")
    private Integer year;
    @WhereType(func = "date_format(publish_date,'%Y-%m') = {1}")
    private Integer ym;
}
